package com.hujiang.basic.search.common.converter.req;

import org.elasticsearch.action.get.GetRequest;
import org.springframework.stereotype.Component;

import com.hujiang.basic.search.common.converter.Converter;
import com.hujiang.basic.search.model.HJGetRequest;

@Component
public class GetRequestConverter implements Converter<HJGetRequest, GetRequest> {

    @Override
    public GetRequest convert(HJGetRequest in) {
        return new GetRequest(in.getIndex(), in.getType(), in.getId());
    }
}
